﻿$(function () {
    shiftlist();
    //主页面快捷键
    $(document).on('keydown', function (e) {
        switch (e.keyCode) {
            case 27:   //Esc操作
                e.preventDefault();
                var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
                parent.layer.close(index);
                parent.parent.window.location.reload();
                break;

            case 113:    //F2
                e.preventDefault();
                message('verification.html', '400px', '300px');
                break;
        }
    })
});